package org.fing.edu.uy.esbadp.core;

import java.io.Serializable;

import org.fing.edu.uy.esbadp.validation.ValidateArgument;

public class AdpFlowTRN implements AdpFlowInterface,Serializable {

	private static final long serialVersionUID = 8920313166022590341L;
	
	private String tranformationText;
	private String desc;

	public AdpFlowTRN(){
		
	}
	
	
	public AdpFlowTRN(String tranformationText , String desc){
		this.tranformationText = tranformationText;
		this.desc = desc;
	}
		
	public String getTranformationText() {
		return tranformationText;
	}

	public void setTranformationText(String tranformationText) {
		this.tranformationText = tranformationText;
	}

	public String getServiceName() {
		return AdpFlowConstants.TransformationServiceName;
	}
	
	public String getServiceCategoryName() {
		return AdpFlowConstants.TransformationServiceCategoryName;
	}

	@Override
	public String toString() {
		if (ValidateArgument.isNotNullAndNotEmpty(tranformationText)){
			return "AdpFlowTRN [defined by xsl file]";
		}else{
			return "AdpFlowTRN [undefined xsl file]";
		}
		
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
